package com.ybkj.daijia.server.mapper;

import com.ybkj.daijia.server.model.Receipt;
import java.util.List;
import java.util.Map;

public interface ReceiptMapper {

    int insertReceipt(Receipt receipt);// 保存发票

    int deleteById(Long id); // 根据主键删除发票

    int updateReceipt(Receipt receipt); // 根据主键修改发票状态

    Receipt selectById(Long id); // 根据主键查询发票

    List<Receipt> selectByMemberId(Long id); // 根据客户主键查询发票

    List<Receipt> selectAll(); // 查询所有发票

    List<Receipt> selectByPage(Map<String, Object> params);

    Long countByPage(Map<String, Object> params);

    List<Receipt> selectByParamLike(Map<String, Object> params);

    Long countByPageLike(Map<String, Object> params);

    List<Receipt> selectByMemberPageId(Map<String, Object> params); //根据客户主键和分页参数查询

    Long countByMemberId(Map<String, Object> params);    //根据客户主键和分页参数条数

    Long selectReceiptNumber();

    List<Receipt> selectAllByParamLike(Map<String, Object> params);

    long countAllByPageLike(Map<String, Object> params);

}
